package com.gs.weather.service.impl;

import com.gs.weather.dao.ViewWidgetDao;
import com.gs.weather.service.ViewWidgetService;
import com.gs.weather.vo.LinkageFrameVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/10/16 0016
 */
@Service
public class ViewWidgetServiceImpl implements ViewWidgetService{

    @Resource
    ViewWidgetDao viewWidgetDao;

    @Override
    public List<LinkageFrameVO> queryAllTypeName() {
       return viewWidgetDao.queryAllTypeName();
    }

    @Override
    public List<LinkageFrameVO> queryAllSubtypeNameByTypeId(int id) {
        return viewWidgetDao.queryAllSubtypeNameByTypeId(id);
    }

    @Override
    public List<LinkageFrameVO> queryAllStrengthLevelBySubtypeId(int id) {
        return viewWidgetDao.queryAllStrengthLevelBySubtypeId(id);
    }
}
